package com.lx.zxs.service;

import com.lx.zxs.entity.User;
import com.lx.zxs.entity.Admin;
import com.lx.zxs.mapper.AdminMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.text.SimpleDateFormat;
import java.util.*;

@Service
public class AdminService {
    @Autowired
    private AdminMapper adminMapper;


    public Admin getadminByNameAndPass(String adminname, String adminpassword) {
        return adminMapper.getadminByNameAndPass(adminname, adminpassword);
    }
}